package com.example.entity.mqtt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName datasc
 */
@TableName(value ="datasc")
@Data
@ApiModel(value = "mqtt硬件表")
public class Datasc implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty("id主键")
    private Integer id;

    /**
     * 命令类型
     */
    @TableField(value = "command")
    @ApiModelProperty("命令类型")
    private String command;

    /**
     * 数据功能
     */
    @TableField(value = "type")
    @ApiModelProperty("数据功能")
    private String type;

    /**
     * 设备编号
     */
    @TableField(value = "deviceid")
    @ApiModelProperty("设备编号")
    private String deviceid;

    /**
     * 设备名称
     */
    @TableField(value = "devicename")
    @ApiModelProperty("设备名称")
    private String devicename;

    /**
     * 帧序号
     */
    @TableField(value = "framenumber")
    @ApiModelProperty("帧序号")
    private Integer framenumber;

    /**
     * 采样时间戳
     */
    @TableField(value = "timestamp")
    @ApiModelProperty("采样时间戳")
    private String timestamp;

    @ApiModelProperty("详细数据")
    @TableField(exist = false)
    private List<Items> items;

}